package com.hoshiicloud.market.param.market;

import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
* <p>
* 新增系统优惠券参数
* </p>
*
* @author campchen
* @since 2019-05-14
*/

@Data
@ApiModel(value="新增系统优惠券", description="新增系统优惠券")
public class CouponsAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    private Long conmpanyid;
    
    @ApiModelProperty(value = "平台ID")
    private Long platformid;
    
    @ApiModelProperty(value = "店铺ID")
    private Long storeid;
    
    @ApiModelProperty(value = "优惠券编码")
    private String couponNo;
    
    @ApiModelProperty(value = "优惠券二维码内容",required=true)
    private String couponQrcode;
    
    @ApiModelProperty(value = "优惠券名称",required=true)
    private LocalDateTime couponName;
    
    @ApiModelProperty(value = "是否现金券  1-现金券  2-折扣券",required=true)
    private Integer credit;
    
    @ApiModelProperty(value = "面值",required=true)
    private BigDecimal amount;
    
    @ApiModelProperty(value = "折扣率",required=true)
    private BigDecimal discount;
    
    @ApiModelProperty(value = "生效日期",required=true)
    private LocalDateTime fromDate;
    
    @ApiModelProperty(value = "领券后N天失效",required=true)
    private Long gotDates;
    
    @ApiModelProperty(value = "失效日期",required=true)
    private LocalDateTime toDate;

    @ApiModelProperty(value ="创建人")
    private String createdby;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;
    
    @ApiModelProperty(value = "备注")
    private String remark;
    
    @ApiModelProperty(value = "订单id")
    private Long orderid;
    
    @ApiModelProperty(value = "会员ID",required=true)
    private Long memberid;
    

}
